<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
<a4j:jsFunction name="ajaxSubmit" oncomplete="#{rich:component('panel1modal')}.show()" reRender="panel1modal" />
 <rich:modalPanel id="panel1modal" width="550" height="100" showWhenRendered="#{zak.mpnazwa.wynik}">
        <f:facet name="header">#{zak.mpnazwa.naglowek}</f:facet>
        <a4j:form >
        <br/>
   <h:panelGrid columns="3">
   	<h:outputText value="#{zak.mpnazwa.etykieta}" />
   	<h:inputText id="form_cena_" value="#{zak.mpnazwa.polenazwa}" />
   	<a4j:commandButton  reRender="form_cena_,sklepy,panel3" id="dodajogloszenie" action="#{zak.modalprzycisk}" value="#{zak.mpnazwa.nazwaprzycisku}" title="dodaj ogłoszenie"/>
   		<f:param name="param" value="#{zak.mpnazwa.param}" />
   	</a4j:commandButton>
   </h:panelGrid>
</a4j:form>
        <f:facet name="controls">
            <h:panelGroup>
            	<h:commandButton   id="hidelink" value="X"/>
                <rich:componentControl for="panel1modal" attachTo="hidelink" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
    </rich:modalPanel>

</html>